package com.chat.admin.domain.DTO.EDIT;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EditAdminDTO {
    /**
     * 管理员id
     */
    @NotNull(message = "id不能为空")
    private Long id;
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Size(min = 1, max = 20)
    private String username;
    /**
     * 角色
     */
    @NotNull(message = "角色Id不能为空")
    private Long roleId;
}
